package urnoted;



import java.util.*;
public class Controller {
    private Staff mStaff;
    private Keyboard mKeyboard;
    private int mCurrentNote;
    Random ran = new Random();

    public void generateNewNote(){
        mCurrentNote = ran.nextInt(8);
    }

    public void keyPressed(int note){
		mStaff.keyPressed(note);
        if(note == mCurrentNote){
            generateNewNote();
        }
    }

}
